package com.ruoyi.order.es;

import com.ruoyi.common.core.annotation.Excel;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "prod_index",shards = 1,replicas = 1)
public class EsProd {
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    @Id
    @Field(type = FieldType.Keyword)
    private Integer prodId;

    /** SPU */
    @Excel(name = "SPU")
    @Field(type = FieldType.Keyword)
    private String prodSpu;

    /** 商品类型;0实物商品1虚拟商品2卡密/网盘 */
    @Excel(name = "商品类型;0实物商品1虚拟商品2卡密/网盘")
    @Field(type = FieldType.Integer)
    private Integer prodKind;

    /** 商品分类 */
    @Excel(name = "商品分类")
    @Field(type = FieldType.Integer)
    private Integer prodType;

    /** 商品名称 */
    @Excel(name = "商品名称")
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String prodName;

    /** 商品品牌 */
    @Excel(name = "商品品牌")
    @Field(type = FieldType.Integer)
    private Integer brandId;

    /** 商品单位 */
    @Excel(name = "商品单位")
    @Field(type = FieldType.Integer)
    private Integer unitId;

    /** 商品标签 */
    @Excel(name = "商品标签")
    @Field(type = FieldType.Integer)
    private Integer tagId;

    /** 供应商 */
    @Excel(name = "供应商")
    @Field(type = FieldType.Keyword)
    private String appr;

    /** 缩略图 */
    @Excel(name = "缩略图")
    @Field(type = FieldType.Keyword)
    private String prodImage;

    public void setProdId(Integer prodId)
    {
        this.prodId = prodId;
    }

    public Integer getProdId()
    {
        return prodId;
    }

    public void setProdSpu(String prodSpu)
    {
        this.prodSpu = prodSpu;
    }

    public String getProdSpu()
    {
        return prodSpu;
    }

    public void setProdKind(Integer prodKind)
    {
        this.prodKind = prodKind;
    }

    public Integer getProdKind()
    {
        return prodKind;
    }

    public void setProdType(Integer prodType)
    {
        this.prodType = prodType;
    }

    public Integer getProdType()
    {
        return prodType;
    }

    public void setProdName(String prodName)
    {
        this.prodName = prodName;
    }

    public String getProdName()
    {
        return prodName;
    }

    public void setBrandId(Integer brandId)
    {
        this.brandId = brandId;
    }

    public Integer getBrandId()
    {
        return brandId;
    }

    public void setUnitId(Integer unitId)
    {
        this.unitId = unitId;
    }

    public Integer getUnitId()
    {
        return unitId;
    }

    public void setTagId(Integer tagId)
    {
        this.tagId = tagId;
    }

    public Integer getTagId()
    {
        return tagId;
    }

    public void setAppr(String appr)
    {
        this.appr = appr;
    }

    public String getAppr()
    {
        return appr;
    }

    public void setProdImage(String prodImage)
    {
        this.prodImage = prodImage;
    }

    public String getProdImage()
    {
        return prodImage;
    }


}
